package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


@Mapper
public interface DishFlavorMapper {
    /**
     * 批量插入菜品口味
     * @param dishFlavor
     */

    public void batchInsert(List<DishFlavor> dishFlavor);

    /**
     * 通过菜品id查询口味
     * @return
     */
    public List<DishFlavor> getByDishId(Long dishId);

    /**
     * 批量删除口味信息
     * @param flavorIds
     */
    void batchDelete(List<Long> flavorIds);
}

